<script setup lang="ts">
import { useTheme } from "@/composables/useTheme";
import Cache from "@/utils/cache";
import { USER_INFO } from "@/config/cache";
import { onLoad, onReady, onShow } from "@dcloudio/uni-app";
import { hidePageNavInWechatBrowser } from "@/composables/useHiddenNavbar";
import { pathToBase64 } from "@/plugin/image-tools/index.js";
import hideWechatMenu from "@/composables/hideWechatMenu";
const { colorStyle } = useTheme();
onReady(() => {
  hidePageNavInWechatBrowser();
});
onShow(() => {
  hideWechatMenu();
});
let nature_of_business = ref("");
function submitHandler() {
  if (!nature_of_business.value)
    return Tips({ title: "请输入公司营业范围内容" });

  const params = {
    logo: logoImg.value,
    enterprise_name: enterprise_name.value,
    enterprise_address: enterprise_address.value,
    contacts_json: JSON.stringify(userList.value),
  };
  getSave(params).then((res) => {
    Tips(
      {
        title: res.info,
      },
      {
        tab: 3,
      }
    );
  });
  console.log("确认点击", userList.value);
}
</script>
<template>
  <view class="wrap" :style="colorStyle">
    <view class="textarea_box pad30">
      <textarea
        class="textarea_class"
        placeholder="请输入公司营业范围内容 "
      ></textarea>
    </view>

    <view class="theme_btn" @click="submitHandler"> 确认设置 </view>
  </view>
</template>

<style scoped lang="scss">
.wrap {
  .textarea_box {
    font-size: 30rpx;
    background: #fff;
    margin-bottom: 50rpx;
    .textarea_class {
      min-height: 900rpx;
    }
  }
}
</style>
